3.7.54 \(\int \frac {1}{\sqrt {2-3 \cos (c+d x)} \sqrt {-\cos (c+d x)}} \, dx\) [654]

Optimal. Leaf size=34 \[ -\frac {2 F\left (\text {ArcSin}\left (\frac {\sin (c+d x)}{1-\cos (c+d x)}\right )|\frac {1}{5}\right )}{\sqrt {5} d} \]

[Out]

-2/5*EllipticF(sin(d*x+c)/(1-cos(d*x+c)),1/5*5^(1/2))/d*5^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.037, Rules used = {2892} \begin {gather*} -\frac {2 F\left (\text {ArcSin}\left (\frac {\sin (c+d x)}{1-\cos (c+d x)}\right )|\frac {1}{5}\right )}{\sqrt {5} d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(Sqrt[2 - 3*Cos[c + d*x]]*Sqrt[-Cos[c + d*x]]),x]

[Out]

(-2*EllipticF[ArcSin[Sin[c + d*x]/(1 - Cos[c + d*x])], 1/5])/(Sqrt[5]*d)

Rule 2892

Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*(
d/(f*Sqrt[a + b*d]))*EllipticF[ArcSin[Cos[e + f*x]/(1 + d*Sin[e + f*x])], -(a - b*d)/(a + b*d)], x] /; FreeQ[{
a, b, d, e, f}, x] && LtQ[a^2 - b^2, 0] && EqQ[d^2, 1] && GtQ[b*d, 0]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {2-3 \cos (c+d x)} \sqrt {-\cos (c+d x)}} \, dx &=-\frac {2 F\left (\sin ^{-1}\left (\frac {\sin (c+d x)}{1-\cos (c+d x)}\right )|\frac {1}{5}\right )}{\sqrt {5} d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(145\) vs. \(2(34)=68\).
time = 0.63, size = 145, normalized size = 4.26 \begin {gather*} -\frac {4 \sqrt {\cot ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {(2-3 \cos (c+d x)) \csc ^2\left (\frac {1}{2} (c+d x)\right )} \sqrt {\cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )} \csc (c+d x) F\left (\left .\text {ArcSin}\left (\frac {1}{2} \sqrt {\cos (c+d x) \csc ^2\left (\frac {1}{2} (c+d x)\right )}\right )\right |-4\right ) \sin ^4\left (\frac {1}{2} (c+d x)\right )}{d \sqrt {2-3 \cos (c+d x)} \sqrt {-\cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(Sqrt[2 - 3*Cos[c + d*x]]*Sqrt[-Cos[c + d*x]]),x]

[Out]

(-4*Sqrt[Cot[(c + d*x)/2]^2]*Sqrt[(2 - 3*Cos[c + d*x])*Csc[(c + d*x)/2]^2]*Sqrt[Cos[c + d*x]*Csc[(c + d*x)/2]^
2]*Csc[c + d*x]*EllipticF[ArcSin[Sqrt[Cos[c + d*x]*Csc[(c + d*x)/2]^2]/2], -4]*Sin[(c + d*x)/2]^4)/(d*Sqrt[2 -
 3*Cos[c + d*x]]*Sqrt[-Cos[c + d*x]])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(120\) vs. \(2(33)=66\).
time = 0.31, size = 121, normalized size = 3.56

method result size
default \(-\frac {2 \EllipticF \left (\frac {-1+\cos \left (d x +c \right )}{\sin \left (d x +c \right )}, \sqrt {5}\right ) \sqrt {\frac {-2+3 \cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {\frac {\cos \left (d x +c \right )}{1+\cos \left (d x +c \right )}}\, \sqrt {2-3 \cos \left (d x +c \right )}\, \left (\sin ^{2}\left (d x +c \right )\right )}{d \left (3 \left (\cos ^{2}\left (d x +c \right )\right )-5 \cos \left (d x +c \right )+2\right ) \sqrt {-\cos \left (d x +c \right )}}\) \(121\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(2-3*cos(d*x+c))^(1/2)/(-cos(d*x+c))^(1/2),x,method=_RETURNVERBOSE)

[Out]

-2/d*EllipticF((-1+cos(d*x+c))/sin(d*x+c),5^(1/2))*((-2+3*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)/(1+cos
(d*x+c)))^(1/2)*(2-3*cos(d*x+c))^(1/2)*sin(d*x+c)^2/(3*cos(d*x+c)^2-5*cos(d*x+c)+2)/(-cos(d*x+c))^(1/2)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-3*cos(d*x+c))^(1/2)/(-cos(d*x+c))^(1/2),x, algorithm="maxima")

[Out]

integrate(1/(sqrt(-cos(d*x + c))*sqrt(-3*cos(d*x + c) + 2)), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-3*cos(d*x+c))^(1/2)/(-cos(d*x+c))^(1/2),x, algorithm="fricas")

[Out]

integral(sqrt(-cos(d*x + c))*sqrt(-3*cos(d*x + c) + 2)/(3*cos(d*x + c)^2 - 2*cos(d*x + c)), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\sqrt {- \cos {\left (c + d x \right )}} \sqrt {2 - 3 \cos {\left (c + d x \right )}}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-3*cos(d*x+c))**(1/2)/(-cos(d*x+c))**(1/2),x)

[Out]

Integral(1/(sqrt(-cos(c + d*x))*sqrt(2 - 3*cos(c + d*x))), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(2-3*cos(d*x+c))^(1/2)/(-cos(d*x+c))^(1/2),x, algorithm="giac")

[Out]

integrate(1/(sqrt(-cos(d*x + c))*sqrt(-3*cos(d*x + c) + 2)), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {1}{\sqrt {-\cos \left (c+d\,x\right )}\,\sqrt {2-3\,\cos \left (c+d\,x\right )}} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((-cos(c + d*x))^(1/2)*(2 - 3*cos(c + d*x))^(1/2)),x)

[Out]

int(1/((-cos(c + d*x))^(1/2)*(2 - 3*cos(c + d*x))^(1/2)), x)

________________________________________________________________________________________